﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ListBoxType.ascx.cs" Inherits="UserControls_FieldControl_ListBoxType" %>
        <asp:PlaceHolder ID="PlhDropList" runat="server" Visible="false">
            <asp:DropDownList ID="DrpList" runat="server">
            </asp:DropDownList><br />
        </asp:PlaceHolder>
        <asp:PlaceHolder ID="PlhRadioList" runat="server" Visible="false">
            <asp:RadioButtonList ID="RadlList" runat="server">
            </asp:RadioButtonList>
        </asp:PlaceHolder>
        <asp:PlaceHolder ID="PlhCheckBoxList" runat="server" Visible="false">
            <asp:CheckBoxList ID="ChBoxList" runat="server">
            </asp:CheckBoxList>
        </asp:PlaceHolder>
        <asp:PlaceHolder ID="PlhDropListAjax" runat="server" Visible="false">            
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:DropDownList ID="DropDownList3" runat="server">
                    </asp:DropDownList>
                </ContentTemplate>
            </asp:UpdatePanel>
        </asp:PlaceHolder>        



<script>
function insert(returnValue_lable)
{
alert(returnValue_lable);
if(returnValue_lable!="-1")
{
	obj=document.getElementById("CommonContent1_Repeater1_ctl09_Field_WhirFieldControl_txtInfo_Content");
	obj.focus();
	if(document.selection==null)
	{
		var iStart = obj.selectionStart
		var iEnd = obj.selectionEnd;
		obj.value = obj.value.substring(0, iEnd) +returnValue_lable+ obj.value.substring(iEnd, obj.value.length);
	}else
	{
		var range = document.selection.createRange();
		range.text=returnValue_lable;
	}
}
}
</script>